<?php

use Biz\service\designerAward\Main as sMain;
/**
 * @deprecated
 */
class GetUserAction extends ActionPlugin
{
    const USER_LEVEL = self::LEVEL_REGISTER;

    public function main()
    {
        $uid = $this->uid;

        if(empty($uid)){
            throw new \Exception('用户不存在');
        }else{
            $user = sMain::GetUser($uid);
            $result = $user;
            $this->setSuccess($result);
        }
    }
}